<!DOCTYPE html>
<html>
<head>
<title>editarticle.htm</title>

<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=UTF-8">

<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

</head>

<body>
	<div style="padding: 10px">
		<h1>完整demo</h1>
		<form id="article_add_form" method="post">
			<div>
				<label for="_weixin_article_title">标题:</label> <input
					class="easyui-textbox" id="_weixin_article_title" name="title"
					data-options="required:true,width:300" />
			</div>
			<div>
				<label for="type_combox_tree">分类:</label> <input
					id="type_combox_tree" name="typeid" />
			</div>
		</form>
		<div>
			<label for="_weixin_article_html">正文:</label>
			<script id="editor2" type="text/plain" style="width:700px;height:450px;"></script>
			<!-- <input class="easyui-textbox" id="html" type="text" name="html" data-options="required:true,multiline:true,width:400,height:200" /> -->
		</div>
		<a id="article_form_savebtn">保存</a>
	</div>
	<script type="text/javascript">
		var $article_add_form = $('#article_add_form');
		$article_form_savebtn.linkbutton({
			iconCls : 'icon-save',
			onClick : function() {
				var datas = $article_add_form.serializeArray();
				console.log(datas);
				$.post('article/api?method=add', datas, function(data) {
					if (data.success) {
						showMsg(0, '请求成功');
					}
				}, 'json');
			}
		});
		var ue = UE.getEditor('editor2');
	</script>
</body>
</html>
